<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-direction flex-wrap align-stretch benben-position-layout flex agriculturaltoolsShelves_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between flex-sub agriculturaltoolsShelves_fd0_0'      >
            <view   class='flex flex-wrap align-center agriculturaltoolsShelves_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  agriculturaltoolsShelves_fd0_0_c0_c0'    >&#xE794;</text>
</view>
    <view   class='flex flex-wrap align-stretch justify-center'      >
        <text class='agriculturaltoolsShelves_fd0_0_c1_c0'    v-if= " type=='3'"  >新农具上架</text><text class='agriculturaltoolsShelves_fd0_0_c1_c0'    v-if= " type=='4'"  >最受欢迎</text>
</view>
    <view   class='flex flex-wrap align-center justify-end agriculturaltoolsShelves_fd0_0_c0'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout"    @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/homePages/farmtoolsDetail/farmtoolsDetail`">
            <template v-for = '(item,key0) in farmList'>
    <view   class='flex flex-wrap align-center agriculturaltoolsShelves_fd1_0'       :key='key0'>
        <image class='agriculturaltoolsShelves_fd1_0_c0'  mode="aspectFit"  :src='item.thumb'></image>
    <view   class='flex flex-direction flex-wrap align-stretch flex-sub'      >
        <text class='agriculturaltoolsShelves_fd1_0_c1_c0'  >{{item.name}}</text>
    <view   class='flex flex-wrap align-center agriculturaltoolsShelves_fd1_0_c1_c1'      >
        <text class='agriculturaltoolsShelves_fd1_0_c1_c1_c0'  >一级分类</text>
<text class='agriculturaltoolsShelves_fd1_0_c1_c1_c1'  >二级分类</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <text class='agriculturaltoolsShelves_fd1_0_c1_c2_c0'  >{{item.bonus_points}}</text>
<text class='agriculturaltoolsShelves_fd1_0_c1_c2_c1'  >积分</text>
<image class='agriculturaltoolsShelves_fd1_0_c1_c2_c2'  mode="aspectFit"  :src='STATIC_URL+"16.png"'></image>
</view>
</view>
</view>
    </template>
    <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
</view>
        
<!---flex布局flex布局结束-->
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"keywords":"","farmList":[],"type":"3"};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            let {type}=options
if (type !== undefined) this.type = type
this.getfarmListFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.getfarmListFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //搜索
                 searchFunc(){
                        this.$urouter.navigateTo(`/pages/homePages/searchHistroy/searchHistroy`);
                },
                //获取农具列表
                 getfarmListFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post62b9118254ebf;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {goods_type:this.type}
                this.listData = [];
                this.farmList = this.listData;
                this.pagingListToggle();
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:var(--benbenbgColor0);background-size: 100% auto;
        }
    .agriculturaltoolsShelves_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .agriculturaltoolsShelves_fd0_0_c1_c0{
        font-size:36rpx;font-weight:500;color:#333;line-height:88rpx;
    }
    .agriculturaltoolsShelves_fd0_0_c0_c0{
        font-size:36rpx;color:#333;
    }
    .agriculturaltoolsShelves_fd0_0_c0{
        width:120rpx;
    }
    .agriculturaltoolsShelves_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c2_c2{
        width:48rpx;height:48rpx;margin:0rpx 0rpx 0rpx auto;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c2_c1{
        color:rgba(230, 56, 56, 1);font-size:24rpx;font-weight:700;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c2_c0{
        color:rgba(230, 56, 56, 1);font-size:36rpx;font-weight:700;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c1_c1{
        color:#999999;font-size:24rpx;font-weight:400;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c1_c0{
        color:#999999;font-size:24rpx;font-weight:400;margin:0rpx 16rpx 0rpx 0rpx;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c1{
        margin:0rpx 0rpx 55rpx 0rpx;
    }
    .agriculturaltoolsShelves_fd1_0_c1_c0{
        color:#333333;font-size:28rpx;font-weight:500;margin:0rpx 0rpx 24rpx 0rpx;
    }
    .agriculturaltoolsShelves_fd1_0_c0{
        width:200rpx;height:200rpx;margin:0rpx 24rpx 0rpx 0rpx;
    }
    .agriculturaltoolsShelves_fd1_0{
        background:#FFFFFF;margin:24rpx 24rpx 0rpx 24rpx;border-radius:16rpx 16rpx 16rpx 16rpx;padding:32rpx 24rpx 32rpx 24rpx;
    }
</style>